﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.ComponentModel.DataAnnotations;

namespace SIGCBI.Entities
{
    public class REDUCIR_PRESUPUESTO : BaseEntity
    {
        public int Id { get; set; }


        [Display(Name = "TipoDoc")]
        public string TipoDoc { get; set; }

        [Display(Name = "NroDoc")]
        [Required(ErrorMessage = "Debe ingresar un Nro. Doc.")]
        [MinLength(6, ErrorMessage = "El Nro. Doc. requiere 6 dígitos")]
        [MaxLength(6, ErrorMessage = "El Nro. Doc. requiere 6 dígitos")]
        public string NroDoc { get; set; }

        [Display(Name = "IdPartida")]
        [Required(ErrorMessage = "La Partida es requerida")]
        [Range(1, 10000000, ErrorMessage = "Debe elegir una Partida")]
        public int IdPartida { get; set; }

        [Display(Name = "Monto")]
        [Required(ErrorMessage = "El Monto es requerido")]
        [Range(1, 10000000, ErrorMessage = "El  Monto debe ser mayor a 0")]
        public decimal Monto{ get; set; }

        public DateTime Fecha { get; set; }

        public virtual PARTIDA PARTIDA { get; set; }
    }
}
